<!DOCTYPE html>
<html>
<head>
    <title>景点信息</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="form-group col-sm-2">
            <input type="text" class="form-control" v-model="q.senicName" @keyup.enter="query" placeholder="请输入景点名称">
        </div>
        <div class="grid-btn" style="margin-left: 200px;">
            <a class="btn btn-default" @click="query">查询</a>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal" id="appForm">
            <div class="form-group">
                <div class="col-sm-2 control-label">景点名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="senicInfo.senicName" placeholder="景点名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">景点图片</div>
                <div class="col-sm-10">
                    <input type="button" class="btn btn-primary" @click="$('#uploadsenicimg').click()" value="图片选择"/>
                    <input type="file" id="uploadsenicimg" @change="uploadFile($event)" style="display: none;">
                    <!-- <input type="submit" class="form-control" v-model="senicInfo.senicImg" placeholder="景点图片"/> -->
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">景点门票</div>
                <div class="col-sm-10">
                    <input type="text" name="senicPrice" class="form-control" v-model="senicInfo.senicPrice" placeholder="景点门票"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">景点介绍</div>
                <div class="col-sm-10">
                    <input type="text" name="senicIntro" class="form-control" v-model="senicInfo.senicIntro" placeholder="景点介绍" max="200"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">景点地点</div>
                <div class="col-sm-10">
                    <input type="text" name="senicPlace" class="form-control" v-model="senicInfo.senicPlace" placeholder="景点地点"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">景点评分</div>
                <div class="col-sm-10">
                    <input type="text" name="senicScore" class="form-control" v-model="senicInfo.senicScore" placeholder="景点评分"/>
                </div>
            </div>
            <!-- <div class="form-group">
                <div class="col-sm-2 control-label">备注</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="senicInfo.remark" placeholder="备注"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">推荐权重</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="senicInfo.recommendWeight" placeholder="推荐权重"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">创建时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="senicInfo.createTime" placeholder="创建时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">修改时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="senicInfo.updateTime" placeholder="修改时间"/>
                </div>
            </div> -->
			<div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="uploadFileStart" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>
<script src="${request.contextPath}/statics/libs/bootstrapValidator.js"></script>
<script src="${request.contextPath}/statics/js/modules/senic/senicinfo.js?_${.now?long}"></script>
</body>
</html>